import allRouter from '../router'

// 获取路由列表
const getRouterList = () => {
    const {options: {routes}} = allRouter
    return routes
}
// 获取home router
const getHomeRouter =  getRouterList()[getRouterList().length - 1]
 
const menuList = () => {
    let {children} = getHomeRouter
    let list = []
    list = getMenuList(children)
    return list
}
const getMenuList = routeList => {
    return routeList
}
export {
    getRouterList,
    getHomeRouter,
    menuList
}